package cn.kmbeast.pojo.dto.query.extend;

import cn.kmbeast.pojo.dto.query.base.QueryDto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
public class NewsSaveDto extends QueryDto {
    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 资讯ID
     */
    private Integer newsId;
    /**
     * 标签ID
     */
    private Integer tagId;

    /**
     * 收藏的时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
